<include file="Public:header"/>
<div class="form_data">
	<form action="" method="get" filterValid="true">
	<div class="mod_name" style="padding-bottom:0px;margin-bottom:0px;">
		<span class="name">搜索条件</span>
	</div>
	<div class="mod_data" style="margin-bottom:10px;">
		<div class="input_data">
			<eq name="_city_id" value="">
				{:W('Plugin/area_select', array('城市', 0, 0))}
			</eq>
			<!-- 用户类型
			<select name="user_type">
				<option value="">全部</option>
				<option value="user" <eq name="user_type" value="user">selected</eq>>普通用户</option>
				<option value="lawyer" <eq name="user_type" value="lawyer">selected</eq>>律师用户</option>
			</select> -->
			昵称
			<input type="text" name="nickname" id="w100" value="{$nickname}">
			手机号
			<input type="text" name="mobile" id="w100" value="{$mobile}">
			<button type="submit" class="btn btn-search">查询</button>
		</div>
	</div>
	</form>
</div>
<div class="total">
	总用户数:<span class="price">{$total_num}</span>，
	今日新增：<span class="price">{$today_num}</span>
</div>
<div class="data_list">
	<table style="width: 1200px">
		<tr>
			<th>用户ID</th>
			<th width="60">省份</th>
			<th width="60">城市</th>
			<th>手机号</th>
			<th>姓名</th>
			<th>昵称</th>
			<th>性别</th>
			<th>E-mail</th>
			<th>
				<a href="?order_filed=login_num_by_desc">
					登录次数
					<eq name="order_filed" value="login_num_by_desc">↓</eq>
				</a>
			</th>
			<th>注册时间</th>
			<th>注册来源</th>
			<th width="30" {:D('Role')->is_acl('set_status?user_type=' . $user_type)}>启用</th>
			<th>操作</th>
		</tr>
		<volist name="list" id="rs">
		<tr>
			<td>{$rs['user_id']}</td>
			<td>{:D('Area')->id2names($rs['province_id'], '', '-')}</td>
			<td>{:D('Area')->id2names($rs['city_id'], '', '-')}</td>
			<td>{$rs['mobile']}</td>
			<td>{$rs['realname']}</td>
			<td>{$rs['nickname']}</td>
			<td>
				<eq name="rs.sex" value="1">男</eq>
				<eq name="rs.sex" value="2">女</eq>
				<eq name="rs.sex" value="0">未设置</eq>
			</td>
			<td>{$rs['email']}</td>
			<td>{$rs['login_num']}</td>
			<td>{:date('Y-m-d H:i:s', $rs['create_time'])}</td>
			<td>{$rs['reg_source']}</td>
			<td {:D('Role')->is_acl('set_status?user_type=' . $user_type)}>
				<input class="ajax_checkbox" url="{:URL('set_status',array('user_type' => $user_type, 'user_id'=>$rs['user_id']))}" type="checkbox" name="status" <eq name="rs.status" value="1">checked</eq> value="1" />
			</td>
			<td>
				<a class="win" href="{:URL('win_set_service', array('user_type' => $user_type, 'user_id'=>$rs['user_id']))}">设置客服</a>
				<eq name="rs.is_lawyer" value="1">
					<a class="win" href="{:URL('win_audit_lawyer', array('user_id' => $rs['user_id']))}">审核</a>
				</eq>
				<a class="win" href="{:URL('win_detail', array('user_type' => $user_type, 'user_id'=>$rs['user_id']))}">查看</a>
			</td>
		</tr>
		</volist>
	</table>
</div>

<div class="page">{$page}</div>
<include file="Public:footer"/>